﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FireStarterModeller.BO;
using NUnit.Framework;

namespace FireStarterModeller.Test.Logic
{
    [TestFixture]
    public class TestXmlWriterClassDefs
    {

        [TestFixtureSetUp]
        public void SetupFixture()
        {
            TestUtilsLogic.SetupFixture();
        }

        [SetUp]
        public void SetupTest()
        {
            TestUtilsLogic.SetupTest();
        }

        [Test]
        public void Test_WhenClassHasInheritedPK_ShouldCreatePK()
        {
            //---------------Set up test pack-------------------
            DMSolution dmSolution =
            new DMSolution("");
            DMClass superClass = TestUtilsDMClass.CreateUnsavedValidDMClass("Vehicle");
            superClass.CreateObjectIdentity();
            DMProperty property = TestUtilsDMProperty.CreateUnsavedValidDMProperty();
            superClass.AllProperties.Add();
            DMClass dmClass = new DMClass();
            dmClass.ClassNameBO = "Car";

            DMInheritanceRelationship dmInheritanceRelationship =
                TestUtilsDMInheritanceRelationship.CreateUnsavedValidDMInheritanceRelationship();
            dmInheritanceRelationship.SuperClass = superClass;
            dmInheritanceRelationship.SubClass = dmClass;
            dmInheritanceRelationship.Discriminator = property.PropertyName;


            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            
            //---------------Test Result -----------------------
            Assert.Fail("Not Yet Implemented");
        }
    }
}
